package com.giscloud.amp.dao;

import com.giscloud.amp.entity.AmpStaffRole;
import com.giscloud.amp.entity.AmpStaffRoleExample;
import com.giscloud.amp.entity.dto.AmpStaffRoleDTO;
import com.giscloud.amp.entity.vo.AmpStaffRoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AmpStaffRoleMapper {
    long countByExample(AmpStaffRoleExample example);

    int deleteByExample(AmpStaffRoleExample example);

    int insert(AmpStaffRole record);

    int batchInsert(List<AmpStaffRole> list);

    int insertSelective(AmpStaffRole record);

    List<AmpStaffRoleVO> selectByExample(AmpStaffRoleExample example);

    List<AmpStaffRoleVO> selectStaffRoleByDTO(AmpStaffRoleDTO example);

    int updateByExampleSelective(@Param("record") AmpStaffRole record, @Param("example") AmpStaffRoleExample example);

    int updateByExample(@Param("record") AmpStaffRole record, @Param("example") AmpStaffRoleExample example);

    List<AmpStaffRoleVO> findRoleByStaff(Long staffId);

    /**
     * 批量更新
     * @param > list
     * @return
     */
    int batchUpdate(List<AmpStaffRole> list);
}